home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: division problem
- Date: Wed, 31 Jan 96 20:04:52 GMT
- Organization: none
- Message-ID: <823118692snz@genesis.demon.co.uk>
- References: <31097D77.11AA@rain.org> <26JAN199622082450@erich.triumf.ca> <4eh246$u6h@airdmhor.gen.nz> <4ej4ha$66@fountain.mindlink.net> <DLzvGG.2rn@uns.bris.ac.uk> <4emuba$1mo@fountain.mindlink.net>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4emuba$1mo@fountain.mindlink.net>
- genew@mindlink.bc.ca "Gene Wirchenko" writes:
-
- >>Still no need to use floating point,
- >>celcius = ((fahrenheit - 32) * 5 + 4) / 9
- >
- > Let's assume that you had never run across fahrenheit to celsius
- >conversion before (because the above could just as easily be a case of
- >converting flibbles to meeblesnauzers).
- >
- > Can you derive the ORIGINAL formula for conversion of F to C?
- >
- > If yes, how? Because you don't know what the 4 is for.
-
- Maybe not but its effect is clearly one of rounding. Perhaps it would be
- clearer to specify it as (9/2), perhaps not.
-
- > If no, then it's unclear code, isn't it?
-
- How would you express it more clearly?
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-